<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>按医院查询</title>
    <style type="text/css">
        td{
            height: 25px;
            width: 100px;
            border: #3a8ee6 1px solid;
            }
        input{
            height: 21px;
        }
    </style>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../../js/jquery-1.11.0.min.js"></script>
    <script type="text/javascript" src="../../js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../../js/02/druga/yeshu1.js"></script>
    <script type="text/javascript" src="../../js/02/chaxun/gonghuoshang.js"></script>

    <script type="text/javascript">
        $(function () {
            gets()
            $.ajax({
                url: '/myspringboot/purchasement/findAllghs',
                type: 'post',
                dataType: "json",
                success: function (result){
                    var dclist=result.data;
                    var dcid = document.getElementById("dcid");
                    dcid.innerHTML = "<option value='0'>全部</option>";
                    for (var i = 0; i < dclist.length; i++) {
                        var opt = document.createElement("option");
                        opt.innerText = dclist[i].surName;
                        opt.setAttribute("value", dclist[i].surId)
                        dcid.appendChild(opt)
                    }
                }
            })
        })
    </script>
</head>
<body>
    <div>
    <table class="" style="border: 1px solid #999;border-collapse:collapse">
        <tr>
            <h3 style="height: 50px" >按医院查询</h3></tr>
        </tr>
        <tr>
            <td>医院：</td>
            <td>
                <select id="dcid" name="leibie" style=" height: 25px; width: 160px;">
                    <option value="">请选择</option>
                </select>
            </td>
            <td></td>
            <td>状态</td>
            <td>
                <select id="zhuangtai" name="zhuangtai" style=" height: 25px; width: 160px;">
                    <option value="">请选择</option>
                    <option value="0">未发货</option>
                    <option value="1">已发货</option>
                    <option value="2">已入库</option>
                    <option value="3">已结算</option>
                </select>
            </td>
            <td></td>
        </tr>
    </table>
    <td>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <button type="reset"  onclick="gets()">查询</button>
        <a href="/myspringboot/suppliser/selectDa"><button>导出</button></a>
    </td>
    <br>
</div>
<iframe id="iframe" name="rfFrame" src="about:blank" style="display:none;"></iframe>
<div>
    <table>
        <tr>
            <td>序号</td>
            <td>采购医院</td>
            <td>采购状态</td>
            <td>采购量</td>
            <td>采购金额</td>
            <td>入库量</td>
        </tr>
        <tbody class="a">
        </tbody>
    </table>

</div>
<div class="im-page" id="impage">
    <tr>
        <td><button id='first'>首页</button></td>
        <td><button id='before'>上一页</button></td>
        <td>第<span id="pnum"></span>页</td>
        <td>共<span id="ptotal"></span>页</td>
        <td><button  id='next'>下一页</button></td>
        <td><button id='last'>尾页</button></td>
    </tr>
</div>
</body>
</html>
